from selenium.webdriver.common.action_chains import ActionChains
from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys

test1=webdriver.Chrome()
test1.get("https://map.baidu.com/")
test1.maximize_window()
sleep(3)
test1.find_element(By.CSS_SELECTOR,"a[id$='closeBtn']").click()
# test1.find_element(By.CLASS_NAME,"close-btn").click()
sleep(2)
ActionChains(test1).click_and_hold().pause(4).move_by_offset(0,200).pause(5).release().perform()
sleep(5)
test1.quit()